package com.hzy.aop;

import org.apache.log4j.Logger;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;

/**
 * @Package: com.hzy.aop
 * @ClassName: AfterLogger
 * @Author: 862982795
 * @CreateTime: 2021/07/05 20:57
 * @Description:定义包含增强方法的 JavaBean
 */
public class AfterLogger {
    private static final Logger log = Logger.getLogger(AfterLogger.class);

    @After("execution(* com.hzy.service.UserService.*(..))")
    public void afterLogger(JoinPoint jp) {
        log.info(jp.getSignature().getName() + " 方法结束执行。");
    }
}
